//
//  BBVIPViewController.m
//  BearSiX
//
//  Created by 潘宇 on 16/3/26.
//  Copyright © 2016年 Tom. All rights reserved.
//

#import "BBVIPViewController.h"
#import "BBVipcustomerViewController.h"
@interface BBVIPViewController ()

@end

@implementation BBVIPViewController



- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor=[UIColor whiteColor];
    UIView *middleview=[[UIView alloc]initWithFrame:CGRectMake(WINSIZEWIDTH/2, 64, 2, WINSIZEHEIGHT-200)];
    middleview.backgroundColor=[UIColor colorWithHexString:@"f6f6f6"];
    [self.view addSubview:middleview];
    UIView *oneview=[[UIView alloc]initWithFrame:CGRectMake(0,(WINSIZEHEIGHT-200)/4+64, WINSIZEWIDTH, 1)];
    oneview.backgroundColor=[UIColor colorWithHexString:@"f6f6f6"];
    [self.view addSubview:oneview];
    UIView *twoview=[[UIView alloc]initWithFrame:CGRectMake(0,(WINSIZEHEIGHT-200)/2+64, WINSIZEWIDTH, 1)];
    twoview.backgroundColor=[UIColor colorWithHexString:@"f6f6f6"];
    [self.view addSubview:twoview];
    
    UIView *thrview=[[UIView alloc]initWithFrame:CGRectMake(0,(WINSIZEHEIGHT-200)/4*3+64, WINSIZEWIDTH, 1)];
    thrview.backgroundColor=[UIColor colorWithHexString:@"f6f6f6"];
    [self.view addSubview:thrview];
    
    UIView *fouview=[[UIView alloc]initWithFrame:CGRectMake(0,(WINSIZEHEIGHT-200)+64, WINSIZEWIDTH, 1)];
    fouview.backgroundColor=[UIColor colorWithHexString:@"f6f6f6"];
    [self.view addSubview:fouview];
    
    UIButton *onebtn=[[UIButton alloc]initWithFrame:CGRectMake(0, 64, WINSIZEWIDTH/2-1, (WINSIZEHEIGHT-200)/4)];
    onebtn.backgroundColor=[UIColor clearColor];
    onebtn.tag=2001;
    [self.view addSubview:onebtn];
    
    UIButton *twobtn=[[UIButton alloc]initWithFrame:CGRectMake(WINSIZEWIDTH/2+1, 64, WINSIZEWIDTH/2-1, (WINSIZEHEIGHT-200)/4)];
    twobtn.backgroundColor=[UIColor clearColor];
    twobtn.tag=2002;
    [self.view addSubview:twobtn];
    
    UIButton *thrbtn=[[UIButton alloc]initWithFrame:CGRectMake(0, (WINSIZEHEIGHT-200)/4+64, WINSIZEWIDTH/2-1, (WINSIZEHEIGHT-200)/4)];
    thrbtn.backgroundColor=[UIColor clearColor];
    thrbtn.tag=2003;
    [self.view addSubview:thrbtn];
    
    UIButton *foubtn=[[UIButton alloc]initWithFrame:CGRectMake(WINSIZEWIDTH/2+1,(WINSIZEHEIGHT-200)/4+64, WINSIZEWIDTH/2-1, (WINSIZEHEIGHT-200)/4)];
    foubtn.backgroundColor=[UIColor clearColor];
    foubtn.tag=2004;
    [self.view addSubview:foubtn];
    
    UIButton *fivbtn=[[UIButton alloc]initWithFrame:CGRectMake(0, (WINSIZEHEIGHT-200)/2+64, WINSIZEWIDTH/2-1, (WINSIZEHEIGHT-200)/4)];
    fivbtn.backgroundColor=[UIColor clearColor];
    fivbtn.tag=2005;
    [self.view addSubview:fivbtn];
    
    UIButton *sixbtn=[[UIButton alloc]initWithFrame:CGRectMake(WINSIZEWIDTH/2+1,(WINSIZEHEIGHT-200)/2+64, WINSIZEWIDTH/2-1, (WINSIZEHEIGHT-200)/4)];
    sixbtn.backgroundColor=[UIColor clearColor];
    sixbtn.tag=2006;
    [self.view addSubview:sixbtn];
    
    UIButton *sevbtn=[[UIButton alloc]initWithFrame:CGRectMake(0, (WINSIZEHEIGHT-200)/4*3+64, WINSIZEWIDTH/2-1, (WINSIZEHEIGHT-200)/4)];
    sevbtn.backgroundColor=[UIColor clearColor];
    sevbtn.tag=2007;
    [self.view addSubview:sevbtn];
    
    UIButton *eigbtn=[[UIButton alloc]initWithFrame:CGRectMake(WINSIZEWIDTH/2+1,(WINSIZEHEIGHT-200)/4*3+64, WINSIZEWIDTH/2-1, (WINSIZEHEIGHT-200)/4)];
    eigbtn.backgroundColor=[UIColor clearColor];
    eigbtn.tag=2008;
    [self.view addSubview:eigbtn];
    
    UIImageView *oneimage=[[UIImageView alloc]initWithFrame:CGRectMake(WINSIZEWIDTH/4-25, 84, 50, 50)];
    if (WINSIZEHEIGHT==568) {
        oneimage.frame=CGRectMake(WINSIZEWIDTH/4-15, 74, 30, 30);
    }
    else if (WINSIZEHEIGHT==667) {
        oneimage.frame=CGRectMake(WINSIZEWIDTH/4-20, 74, 40, 40);
    }
    [oneimage setImage:[UIImage imageNamed:@"12-1"]];
    [self.view addSubview:oneimage];
    
    UIImageView *twoimage=[[UIImageView alloc]initWithFrame:CGRectMake(WINSIZEWIDTH/4*3-25, 84, 50, 50)];
    if (WINSIZEHEIGHT==568) {
        twoimage.frame=CGRectMake(WINSIZEWIDTH/4*3-15, 74, 30, 30);
    }
    else if (WINSIZEHEIGHT==667) {
        twoimage.frame=CGRectMake(WINSIZEWIDTH/4*3-20, 74, 40, 40);
    }
    [twoimage setImage:[UIImage imageNamed:@"12-2"]];
    [self.view addSubview:twoimage];
    
    UIImageView *thrimage=[[UIImageView alloc]initWithFrame:CGRectMake(WINSIZEWIDTH/4-25, (WINSIZEHEIGHT-200)/4+84, 50, 50)];
    if (WINSIZEHEIGHT==568) {
        thrimage.frame=CGRectMake(WINSIZEWIDTH/4-15, (WINSIZEHEIGHT-200)/4+74, 30, 30);
    }
    else if (WINSIZEHEIGHT==667) {
        thrimage.frame=CGRectMake(WINSIZEWIDTH/4-20,(WINSIZEHEIGHT-200)/4+74, 40, 40);
    }
    [thrimage setImage:[UIImage imageNamed:@"12-3"]];
    [self.view addSubview:thrimage];
    
    UIImageView *fouimage=[[UIImageView alloc]initWithFrame:CGRectMake(WINSIZEWIDTH/4*3-25, (WINSIZEHEIGHT-200)/4+84, 50, 50)];
    if (WINSIZEHEIGHT==568) {
        fouimage.frame=CGRectMake(WINSIZEWIDTH/4*3-15,(WINSIZEHEIGHT-200)/4+74, 30, 30);
    }
    else if (WINSIZEHEIGHT==667) {
        fouimage.frame=CGRectMake(WINSIZEWIDTH/4*3-20,(WINSIZEHEIGHT-200)/4+74, 40, 40);
    }
    [fouimage setImage:[UIImage imageNamed:@"12-4"]];
    [self.view addSubview:fouimage];
    
    UIImageView *fivimage=[[UIImageView alloc]initWithFrame:CGRectMake(WINSIZEWIDTH/4-25, (WINSIZEHEIGHT-200)/2+84, 50, 50)];
    if (WINSIZEHEIGHT==568) {
        fivimage.frame=CGRectMake(WINSIZEWIDTH/4-15,(WINSIZEHEIGHT-200)/2+74, 30, 30);
    }
    
    else if (WINSIZEHEIGHT==667) {
        fivimage.frame=CGRectMake(WINSIZEWIDTH/4-20,(WINSIZEHEIGHT-200)/2+74, 40, 40);
    }
    [fivimage setImage:[UIImage imageNamed:@"12-5"]];
    [self.view addSubview:fivimage];
    
    UIImageView *siximage=[[UIImageView alloc]initWithFrame:CGRectMake(WINSIZEWIDTH/4*3-25, (WINSIZEHEIGHT-200)/2+84, 50, 50)];
    if (WINSIZEHEIGHT==568) {
        siximage.frame=CGRectMake(WINSIZEWIDTH/4*3-15,(WINSIZEHEIGHT-200)/2+74, 30, 30);
    }
    else if (WINSIZEHEIGHT==667) {
        siximage.frame=CGRectMake(WINSIZEWIDTH/4*3-20,(WINSIZEHEIGHT-200)/2+74, 40, 40);
    }
    [siximage setImage:[UIImage imageNamed:@"12-6"]];
    [self.view addSubview:siximage];
    
    UIImageView *sevimage=[[UIImageView alloc]initWithFrame:CGRectMake(WINSIZEWIDTH/4-25, (WINSIZEHEIGHT-200)/4*3+84, 50, 50)];
    if (WINSIZEHEIGHT==568) {
        sevimage.frame=CGRectMake(WINSIZEWIDTH/4-15,(WINSIZEHEIGHT-200)/4*3+74, 30, 30);
    }
    else if (WINSIZEHEIGHT==667) {
        sevimage.frame=CGRectMake(WINSIZEWIDTH/4-20,(WINSIZEHEIGHT-200)/4*3+74, 40, 40);
    }
    [sevimage setImage:[UIImage imageNamed:@"12-7"]];
    [self.view addSubview:sevimage];
    
    UIImageView *eigimage=[[UIImageView alloc]initWithFrame:CGRectMake(WINSIZEWIDTH/4*3-25, (WINSIZEHEIGHT-200)/4*3+84, 50, 50)];
    if (WINSIZEHEIGHT==568) {
        eigimage.frame=CGRectMake(WINSIZEWIDTH/4*3-15,(WINSIZEHEIGHT-200)/4*3+74, 30, 30);
    }
    else if (WINSIZEHEIGHT==667) {
        eigimage.frame=CGRectMake(WINSIZEWIDTH/4*3-20,(WINSIZEHEIGHT-200)/4*3+74, 40, 40);
    }
    [eigimage setImage:[UIImage imageNamed:@"12-8"]];
    [self.view addSubview:eigimage];
    
    UILabel *onelabel=[[UILabel alloc]initWithFrame:CGRectMake(WINSIZEWIDTH/4-30, 150, 70, 10)];
    if (WINSIZEHEIGHT==568) {
        onelabel.frame=CGRectMake(WINSIZEWIDTH/4-30, 118, 70, 10);
    }
    else if (WINSIZEHEIGHT==667) {
        onelabel.frame=CGRectMake(WINSIZEWIDTH/4-30, 130, 70, 10);
    }
    onelabel.text=@"当日会员";
    onelabel.font = [UIFont fontWithName:@"Helvetica" size:15.f];
    [self.view addSubview:onelabel];
    
    UILabel *onelabels=[[UILabel alloc]initWithFrame:CGRectMake(WINSIZEWIDTH/4-40, 172, 100, 10)];
    if (WINSIZEHEIGHT==568) {
        onelabels.frame=CGRectMake(WINSIZEWIDTH/4-45, 140,100, 10);
    }
    if (WINSIZEHEIGHT==667) {
        onelabels.frame=CGRectMake(WINSIZEWIDTH/4-45, 160,100, 10);
    }
    onelabels.text=@"今日会员2/位";
    onelabels.textColor=[UIColor lightGrayColor];
    onelabels.font = [UIFont fontWithName:@"Helvetica" size:13.f];
    [self.view addSubview:onelabels];
    
    UILabel *twolabel=[[UILabel alloc]initWithFrame:CGRectMake(WINSIZEWIDTH/4*3-30, 150, 70, 10)];
    if (WINSIZEHEIGHT==568) {
        twolabel.frame=CGRectMake(WINSIZEWIDTH/4*3-30, 118, 70, 10);
    }
    else if (WINSIZEHEIGHT==667) {
        twolabel.frame=CGRectMake(WINSIZEWIDTH/4*3-30, 130, 70, 10);
    }
    twolabel.text=@"当月充值";
    twolabel.font = [UIFont fontWithName:@"Helvetica" size:15.f];
    [self.view addSubview:twolabel];
    
    UILabel *twolabels=[[UILabel alloc]initWithFrame:CGRectMake(WINSIZEWIDTH/4*3-40, 172, 100, 10)];
    if (WINSIZEHEIGHT==568) {
        twolabels.frame=CGRectMake(WINSIZEWIDTH/4*3-45, 140,100, 10);
    }
    if (WINSIZEHEIGHT==667) {
        twolabels.frame=CGRectMake(WINSIZEWIDTH/4*3-45, 160,100, 10);
    }
    twolabels.text=@"￥867,890.00";
    twolabels.textColor=[UIColor redColor];
    twolabels.font = [UIFont fontWithName:@"Helvetica" size:14.f];
    [self.view addSubview:twolabels];
    
    UILabel *trelabel=[[UILabel alloc]initWithFrame:CGRectMake(WINSIZEWIDTH/4-30, (WINSIZEHEIGHT-200)/2+18, 70, 10)];
    if (WINSIZEHEIGHT==568) {
        trelabel.frame=CGRectMake(WINSIZEWIDTH/4-30,(WINSIZEHEIGHT-200)/2+33, 70, 10);
    }
    trelabel.text=@"会员客户";
    trelabel.font = [UIFont fontWithName:@"Helvetica" size:15.f];
    [self.view addSubview:trelabel];
    
    UILabel *foulabel=[[UILabel alloc]initWithFrame:CGRectMake(WINSIZEWIDTH/4*3-30, (WINSIZEHEIGHT-200)/2+18, 70, 10)];
    if (WINSIZEHEIGHT==568) {
        foulabel.frame=CGRectMake(WINSIZEWIDTH/4*3-30,(WINSIZEHEIGHT-200)/2+33, 70, 10);
    }
    foulabel.text=@"会员绑定";
    foulabel.font = [UIFont fontWithName:@"Helvetica" size:15.f];
    [self.view addSubview:foulabel];
    
    UILabel *fivlabel=[[UILabel alloc]initWithFrame:CGRectMake(WINSIZEWIDTH/4-30, (WINSIZEHEIGHT-200)/4*3+18, 70, 10)];
    if (WINSIZEHEIGHT==568) {
        fivlabel.frame=CGRectMake(WINSIZEWIDTH/4-30,(WINSIZEHEIGHT-200)/4*3+33, 100, 10);
    }
    fivlabel.text=@"积分操作";
    fivlabel.font = [UIFont fontWithName:@"Helvetica" size:15.f];
    [self.view addSubview:fivlabel];
    
    UILabel *sixlabel=[[UILabel alloc]initWithFrame:CGRectMake(WINSIZEWIDTH/4*3-30, (WINSIZEHEIGHT-200)/4*3+18, 70, 10)];
    if (WINSIZEHEIGHT==568) {
        sixlabel.frame=CGRectMake(WINSIZEWIDTH/4*3-30,(WINSIZEHEIGHT-200)/4*3+33, 70, 10);
    }

    sixlabel.text=@"充值查询";
    sixlabel.font = [UIFont fontWithName:@"Helvetica" size:15.f];
    [self.view addSubview:sixlabel];
    
    UILabel *sevlabel=[[UILabel alloc]initWithFrame:CGRectMake(WINSIZEWIDTH/4-30, (WINSIZEHEIGHT-200)+18, 70, 10)];
    if (WINSIZEHEIGHT==568) {
        sevlabel.frame=CGRectMake(WINSIZEWIDTH/4-30,(WINSIZEHEIGHT-200)+33, 70, 10);
    }
    sevlabel.text=@"消费查询";
    sevlabel.font = [UIFont fontWithName:@"Helvetica" size:15.f];
    [self.view addSubview:sevlabel];
    
    UILabel *eiglabel=[[UILabel alloc]initWithFrame:CGRectMake(WINSIZEWIDTH/4*3-30, (WINSIZEHEIGHT-200)+18, 70, 10)];
    if (WINSIZEHEIGHT==568) {
        eiglabel.frame=CGRectMake(WINSIZEWIDTH/4*3-30,(WINSIZEHEIGHT-200)+33, 70, 10);
    }
    eiglabel.text=@"积分查询";
    eiglabel.font = [UIFont fontWithName:@"Helvetica" size:15.f];
    [self.view addSubview:eiglabel];
    [thrbtn addTarget:self action:@selector(goToSet) forControlEvents:UIControlEventTouchUpInside];
  
}
-(void)goToSet{
    BBVipcustomerViewController* vipcVC = [BBVipcustomerViewController new];
    [self.navigationController pushViewController:vipcVC animated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
